﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AssetXmission.aspx.cs" Inherits="PolePosition.v3.WcfService.MapServices.BalloonText" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Balloon Text</title>
    <style>
        <!--
        html body {border-left: solid steelblue 5px; background-color: White; margin: 0px; padding: 0px; padding-left: 5px; font-family: Arial; font-size: x-small; width: 100%; height: 100%; overflow-x: hidden;}
        .title-main {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .title {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .indent {padding-left: 5px;}
        img.image {margin: 3px;}
        a.image {}
        a.image:hover {}
        .namevalue-table {border: solid gainsboro 1px;}
        td.namevalue-namecell {width: 100px; font-weight: bold; padding: 3px;}
        td.namevalue-valuecell {width: 165px; padding: 3px;}
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:FormView ID="FormViewAssetStructure" runat="server">
        <ItemTemplate>
           <div class="title-main">
                <%# XPath("TITLE") %>
            </div>
            
            <table class="namevalue-table" cellspacing="0" cellpadding="0">
                <tr><td class="namevalue-namecell">PPI #</td><td class="namevalue-valuecell"><%# XPath("PoleId")%></td></tr>
                <tr><td class="namevalue-namecell">Map</td><td class="namevalue-valuecell"><%# XPath("MapName")%></td></tr>
                <tr><td class="namevalue-namecell">Section</td><td class="namevalue-valuecell"><%# XPath("SectionName")%></td></tr>
                <tr><td class="namevalue-namecell">Latitude</td><td class="namevalue-valuecell"><%# XPath("Latitude")%></td></tr>
                <tr><td class="namevalue-namecell">Longitude</td><td class="namevalue-valuecell"><%# XPath("Longitude")%></td></tr>
                <tr><td class="namevalue-namecell">Asset #</td><td class="namevalue-valuecell"><%# XPath("Number")%></td></tr>                

                <tr><td class="namevalue-namecell">Length</td><td class="namevalue-valuecell"><%# XPath("LenghtName")%></td></tr>                                
                <tr><td class="namevalue-namecell">Class</td><td class="namevalue-valuecell"><%# XPath("ClassName")%></td></tr>
                <tr><td class="namevalue-namecell">Top</td><td class="namevalue-valuecell"><%# XPath("TopName")%></td></tr>
                <tr><td class="namevalue-namecell">Specie</td><td class="namevalue-valuecell"><%# XPath("SpecieName")%></td></tr>
                <tr><td class="namevalue-namecell">Treatment</td><td class="namevalue-valuecell"><%# XPath("TreatmentName")%></td></tr>
            </table>                

            <div class="title-main">
                <%# XPath("HistoryTitle")%>
            </div>              
              
            <ul>
                <asp:Repeater ID="Repeater2" runat="server" DataSource='<%# XPathSelect("VISITS/VISIT") %>'>
                    <ItemTemplate>
                        <li>Visited by <%# XPath("VendorName")%> in <%# XPath("YearVisited")%>, <a href='<%# XPath("urlInspectionVisit")%>'><%# XPath("TITLE")%> #<%# XPath("ID")%></a></li>
                            <asp:Repeater ID="Repeater2" runat="server" DataSource='<%# XPathSelect("IMAGES/IMAGE") %>'>
                                <ItemTemplate>
                                    <a class="image" target="_blank" href='<%# XPath("@href") %>'><img class="image" src='<%# XPath("@src") %>' border="0" /></a>
                                </ItemTemplate>
                            </asp:Repeater>
                        <%# ((string)(XPathBinder.Eval(Container.DataItem, "LastVisitorName")) == null ? "" : "<p style='border-bottom: dotted 1px'></p><li>Visited by " + XPathBinder.Eval(Container.DataItem, "LastVisitorName") + " in " + XPathBinder.Eval(Container.DataItem, "LastVisitorDate") + "</li>")%>
                    </ItemTemplate>
                </asp:Repeater>                   
            </ul>
        </ItemTemplate>
    </asp:FormView>
    </form>
</body>
</html>

